<%--
  Created by IntelliJ IDEA.
  User: Cool
  Date: 2023/10/17
  Time: 14:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String email = request.getParameter("email");
    String domain = request.getParameter("domain");
    String username = request.getParameter("username");
    String datetime = request.getParameter("datetime");
    String sex = request.getParameter("sex");
    String checkbox[] = request.getParameterValues("checkbox");
    String description = request.getParameter("textarea");
    String check="";
    for (int i = 0; i < checkbox.length; i++) {
        check+=checkbox[i];
        if (i!=checkbox.length-1) check+=",";
    }
%>
    <table border="1">
        <tr>
            <td>邮箱地址</td>
            <td>真实姓名</td>
            <td>出生日期</td>
            <td>性别</td>
            <td>杂志订阅</td>
            <td>备注</td>
        </tr>
        <%--数据--%>
        <tr>
            <td><%=email+"@"+domain%></td>
            <td><%=username%></td>
            <td><%=datetime%></td>
            <td><%=sex%></td>
            <td><%=check%></td>
            <td><%=description%></td>
        </tr>
    </table>

</body>
</html>
